package libs.yzx.zaza.util;

import android.content.Context;
import android.util.AttributeSet;
import android.util.Log;
import android.view.View;
import android.widget.FrameLayout;

/**
 * Created by Administrator on 2016/10/25.
 */

public class ZazaLayout extends FrameLayout {
    public ZazaLayout(Context context) {
        super(context);
        post(new Runnable() {
            public void run() {
                Log.e("------->>", "fu  post over");
            }
        });
    }

    public ZazaLayout(Context context, AttributeSet attrs) {
        super(context, attrs);
        post(new Runnable() {
            public void run() {
                Log.e("------->>", "fu  post over");
            }
        });
    }

    public ZazaLayout(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        post(new Runnable() {
            public void run() {
                Log.e("------->>", "fu  post over");
            }
        });
    }



    @Override
    protected void onVisibilityChanged(View changedView, int visibility) {
        super.onVisibilityChanged(changedView, visibility);
        Log.e("------>>","fu ---visibility : "+visibility);
    }


    @Override
    protected void onAttachedToWindow() {
        super.onAttachedToWindow();
        Log.e("------>>","fu ---attach");
    }

    @Override
    protected void onFinishInflate() {
        super.onFinishInflate();
        Log.e("------>>","fu ---finish inflate");
    }

    @Override
    protected void onAnimationEnd() {
        super.onAnimationEnd();
        Log.e("------>>","fu ---on Animation End");
    }

    @Override
    protected void onAnimationStart() {
        super.onAnimationStart();
        Log.e("------>>","fu ---on Animation start");
    }

    @Override
    protected void onSizeChanged(int w, int h, int oldw, int oldh) {
        super.onSizeChanged(w, h, oldw, oldh);
        Log.e("------>>","fu ---on size changed");
    }
}
